package com.mall.common;


public class Constants {

	/** 是否系统管理员 **/
    public static final String USER_IS_CORP_MANAGER = "Y";
    /** 不是否系统管理员 **/
    public static final String USER_NOT_CORP_MANAGER = "N";
	/** 授权动作 ***/
	public static final int OPERATE_TYPE_AUTHORITY = 1;
	/** 普通动作 **/
	public static final int OPERATE_TYPE_NORMAL = 2;
	 /**菜单类别：含子菜单	 **/
	public static final int MENUTYPE_PARENT = 1;
	/**菜单类别：最终菜单**/
	public static final int MENUTYPE_NODE = 2;
	/**菜单类别：分割线**/
	public static final int MENUTYPE_LINE = 3;
    /** 菜单位置:顶级菜单 **/
    public static final int MENUPOSITION_TOP = 1;
    /** 菜单位置:左侧菜单 **/
    public static final int MENUPOSITION_LEFT = 2;

    /** 系统配置缓存名称 **/
	public static final String CACHE_NAME = "setting";
    /** 系统配置缓存键值 **/
	public static final String CACHE_KEY = "systemSetting";
    /** 数据字典缓存键值前缀 **/
	public static final String CACHE_DICTIONARY_KEY_PREFIX = "system_dict_";
	/** 系统配置文件名称 **/
    public static final String CONFIG_FILE_NAME = "/system.xml";
    
    public static final String APPLICATION_URL_ROLE = "urlRole";
    /** UTF-8编码 **/
	public static final String UTF8 = "UTF-8";
	/** HTTP POST请求 **/
	public static final String POST = "POST";
	/**树的编码分隔符**/
	public static final char TREE_SEPARATE = '.';
	/** cookie中的JSESSIONID名称 **/
	public static final String JSESSION_COOKIE = "JSESSIONID";
	public static final String Search_prefix = "/list-";
	public static final Integer pageSize = 10;
	/** 角色分隔符 **/
	public static final String ROLE_SEPARATOR = ",";
	/** 角色标识前缀**/
	public static final String ROLE_VALUE_PREFIX = "ROLE_";
	/** 树路径分隔符 **/
	public static final String PATH_SEPARATOR = ",";
	
	/** 文章标题在redis存储的键值 **/
	public static final String REDIS_ARTICLE_TITLE = "article_title";
	/** 文章点击数redis存储前缀 **/
	public static final String REDIS_ARTICLE_PREFIX = "article_hit";

	/** 本地上传组件名称 **/
	public static final String UPLOAD_TYPE_FILE = "filePlugin";
	/** ftp上传路径前缀 **/
	public static final String UPLOAD_PATH_PREFIX = "/usr/local/nginx/html/uploads";
	/** 默认分页大小 **/
	public static final Integer DEFAULT_PAGE_SIZE = 10;
}
